Previous Book Contents Book Index Next

Inside Macintosh: Programming With JManager /
Chapter 2 - JManager Reference / JManager Functions
Runtime Invocation Functions /


JMIdle

Allows JManager time to service other threads.

OSStatus JMIdle     (JMSessionRef session, 
                     UInt32 JMTimeMillis);
session
The current session.
JMTimeMillis
The amount of time, in milliseconds, allowed to service other threads. For the default wait period, you can set this parameter to kDefaultJMTime.
function result
A result code; see "JManager Result Codes".
DISCUSSION
If no threads need to be serviced, JMIdle returns immediately. JMIdle also returns, suspending other threads, if a user event occurs in the current session. You should call the JMIdle function once each time through the event loop.

SEE ALSO
"Servicing Other Threads".

The JMFrameMouseOver function.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
10 DEC 1997